/* ###################################### */
/* ###     Util Engine, by Kalith    ### */
/* ###################################### */
/*                                        */

#include "Log.h"
#include "UtilsManager.h"

using namespace std;

namespace Util
{
    void Log( const Str& sMessage, const Bool& bTimeStamps, const UInt& uiOffset )
    {
        UtilsManager::GetSingleton()->Log(sMessage, bTimeStamps, uiOffset);
    }

    void Error( const Str& sClass, const Str& sMessage )
    {
        Str sHeader = "# Error # : ";
        if (sClass != "")
            sHeader += sClass + " : ";

        Log(sHeader + sMessage, true, sHeader.GetLength());
    }

    void Warning( const Str& sClass, const Str& sMessage )
    {
        Str sHeader = "# Warning # : ";
        if (sClass != "")
            sHeader += sClass + " : ";

        Log(sHeader + sMessage, true, sHeader.GetLength());
    }

    const UInt& GetLogLevel()
    {
        return UtilsManager::GetSingleton()->GetLogLevel();
    }
}
